<?php /* Smarty version 2.6.18, created on 2012-05-16 21:43:05
         compiled from member/box-advancesearch.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'member/box-advancesearch.tpl', 8, false),array('function', 'html_options', 'member/box-advancesearch.tpl', 17, false),)), $this); ?>
<div class="boxAdvance<?php if ($this->_tpl_vars['strAction'] == 'advance'): ?> noBottomLine<?php endif; ?>">
    <div class="headerTitle"><h3>Tìm kiếm nâng cao</h3></div>
    <div class="advanceItem">
        <form method="get" id="frmSearch" name="frmSearch" action="<?php echo @LINK_MEMBER_SEARCH; ?>
" enctype="multipart/form-data">
        	<input type="hidden" name="advance" id="advance" value="1" />
            <div class="userInput">
            	<label for="keyword">Từ khóa</label>
                <input type="text" id="keyword" name="keyword" <?php if (isset ( $this->_tpl_vars['params'] )): ?>value="<?php echo ((is_array($_tmp=$this->_tpl_vars['params']['keyword'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"<?php endif; ?> maxlength="50" class="text" />
            </div>
            <div class="userInput">
            	<div class="half">
                    <label for="afrom">Tuổi</label>
                    <div class="afrom">
                        <select name="afrom" id="afrom" class="select half">
                            <option value="0">Tất cả</option>
                           	<?php if (isset ( $this->_tpl_vars['params'] )): ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrAge'],'selected' => $this->_tpl_vars['params']['afrom']), $this);?>

                            <?php else: ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrAge']), $this);?>

                            <?php endif; ?>
                        </select>
                    </div>
                    <div class="ato">
                        <select name="ato" id="ato" class="select half">
                            <option value="0">Tất cả</option>
                            <?php if (isset ( $this->_tpl_vars['params'] )): ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrAge'],'selected' => $this->_tpl_vars['params']['ato']), $this);?>

                            <?php else: ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrAge']), $this);?>

                            <?php endif; ?>
                        </select>
                   	</div>
               	</div>
                <div class="marital half">
                    <label for="marital">Tình trạng</label>
                    <select name="marital[]" id="marital" multiple="multiple">
                        <?php if (isset ( $this->_tpl_vars['params'] )): ?>
                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrMarital'],'selected' => $this->_tpl_vars['params']['marital']), $this);?>

                        <?php else: ?>
                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrMarital']), $this);?>

                        <?php endif; ?>
                    </select>
               	</div>
            </div>  
            <div class="userInput">
            	<div class="half">
                    <label for="look_gender">Giới tính</label>
                    <div class="gender">
                        <select name="gender" id="look_gender" class="select half">
                            <option value="0">Tất cả</option>
                            <?php if (isset ( $this->_tpl_vars['params'] )): ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrGender'],'selected' => $this->_tpl_vars['params']['gender']), $this);?>

                            <?php else: ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrGender']), $this);?>

                            <?php endif; ?>
                        </select>
                   	</div>
               	</div>
                <div class="occupation half">
                    <label for="occupation">Nghề nghiệp</label>
                    <select name="occupation[]" id="occupation" multiple="multiple">                    	
                        <?php if (isset ( $this->_tpl_vars['params'] )): ?>
                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrOccupation'],'selected' => $this->_tpl_vars['params']['occupation']), $this);?>

                        <?php else: ?>
                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrOccupation']), $this);?>

                        <?php endif; ?>
                    </select>
               	</div>
            </div>
            <div class="userInput">
            	<div class="half">
                    <label for="avatar">Ảnh đại diện</label>
                    <div class="avatar">
                        <select name="avatar" id="avatar" class="select half">
                            <option value="0">Không</option>
                            <option value="1">Có</option>
                        </select>
                   	</div>
               	</div>
            	<div class="religion half">
                    <label for="religion">Tôn giáo</label>
                    <select name="religion[]" id="religion" multiple="multiple">
                    	<?php if (isset ( $this->_tpl_vars['params'] )): ?>
                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrReligion'],'selected' => $this->_tpl_vars['params']['religion']), $this);?>

                        <?php else: ?>
                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrReligion']), $this);?>

                        <?php endif; ?>
                    </select>
               	</div>                
            </div>       
            <div class="userInput">
            	<div class="province half">
                    <label for="province">Tỉnh/thành</label>
                    <select name="province[]" id="province" class="first" multiple="multiple">                    	
                        <?php if (isset ( $this->_tpl_vars['params'] )): ?>
                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrProvince'],'selected' => $this->_tpl_vars['params']['province']), $this);?>

                        <?php else: ?>
                            <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrProvince']), $this);?>

                        <?php endif; ?>
                    </select>
               	</div>
            	<div class="preference half">
                    <label for="preference">Sở thích</label>
                    <select name="preference[]" id="preference" multiple="multiple">
                        <?php if (isset ( $this->_tpl_vars['params'] )): ?>
                            <optgroup label="Âm nhạc" id="<?php echo @QUESTION_ID_MUSIC; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrMusic'],'selected' => $this->_tpl_vars['params']['preference']), $this);?>

                            </optgroup>
                            <optgroup label="Phim bộ" id="<?php echo @QUESTION_ID_DRAMA; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrDrama'],'selected' => $this->_tpl_vars['params']['preference']), $this);?>

                            </optgroup>
                            <optgroup label="Phim lẽ" id="<?php echo @QUESTION_ID_MOVIE; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrMovie'],'selected' => $this->_tpl_vars['params']['preference']), $this);?>

                            </optgroup>
                            <optgroup label="Thể thao" id="<?php echo @QUESTION_ID_SPORT; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrSport'],'selected' => $this->_tpl_vars['params']['preference']), $this);?>

                            </optgroup>
                            <optgroup label="Khác" id="<?php echo @QUESTION_ID_OTHER; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrOther'],'selected' => $this->_tpl_vars['params']['preference']), $this);?>

                            </optgroup>
                        <?php else: ?>
                        	<optgroup label="Âm nhạc" id="<?php echo @QUESTION_ID_MUSIC; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrMusic']), $this);?>

                            </optgroup>
                            <optgroup label="Phim bộ" id="<?php echo @QUESTION_ID_DRAMA; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrDrama']), $this);?>

                            </optgroup>
                            <optgroup label="Phim lẽ" id="<?php echo @QUESTION_ID_MOVIE; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrMovie']), $this);?>

                            </optgroup>
                            <optgroup label="Thể thao" id="<?php echo @QUESTION_ID_SPORT; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrSport']), $this);?>

                            </optgroup>
                            <optgroup label="Khác" id="<?php echo @QUESTION_ID_OTHER; ?>
">
                            	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrOther']), $this);?>

                            </optgroup>
                        <?php endif; ?>
                    </select>
               	</div>                
            </div>
            <div class="userInput">
            	<input type="submit" class="btn" value="Tìm kiếm" />
            </div>     
        </form>
    </div>
</div>